<template>
  <div class="container">
      <h4>
        {{info.title}}
      </h4>
      <div v-html="info.content" class="content"></div>
  </div>
</template>
<script>
import common from '../../kits/common.js'
export default {
  data(){
    return {
      info:''
    }
  },
  created(){
    this.id = this.$route.params.id;
    this.getdesc();
  },
  methods:{
    getdesc(){
      var url = common.apidomain + '/api/goods/getdesc/' + this.id;
      this.$http.get(url).then(function(res){
        this.info = res.body.message[0];
      });
    }
  }
}
</script>
<style>
  p{
    margin-bottom: -6px;
    text-align: left;
  }
  .content img{
    width: 100%;
    height: 100%;
    margin-bottom: -6px;
  }
  img:last-child {
    margin: 0;
  }
</style>
